/*
 * Sensor.cpp
 *
 * Created on: 31-03-2014
 *     Author: A.W. Janisse
 */

#include "Subject.h"

Subject::Subject()
{
    //ctor
}

Subject::~Subject()
{
    //dtor
}

void Subject::attachObserver(Observer *o)
{
    observers.push_back(o);
}

void Subject::notify()
{
    for(unsigned int i = 0; i < observers.size(); i++){

        observers[i]->Update(this);
    }
}
